<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>发现|团购网</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/compass.css"/>
		<link rel="stylesheet" type="text/css" href="css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="//at.alicdn.com/t/font_850978_i0degwyixkd.css"/>
	</head>
	<body>
		<!--头部S-->
		<header>
			<div class="fl back">
				<a href="">Back</a>
			</div>
			<div class="selectBar fr">
				<select name="" id="">
					<option value="广州">广州市</option>
					<option value="佛山">佛山市</option>
					<option value="深圳">深圳市</option>
				</select>
			</div>
			<div class="title">
				发现
			</div>
			<div class="searchBar">
				<input type="search" />
				<input type="image" src="img/fdj_06.jpg"/>
			</div>
		</header>
		<!--头部E-->
		
		
		<!--主体S-->
		<section>
			<div class="cp1">
				<div class="every">
					大家都在搜
				</div>
				<div class="clearfix way">
					<div class="fl"><a href="">寿司</a></div>
					<div class="fl"><a href="">羽毛球</a></div>
					<div class="fl"><a href="">火锅</a></div>
					<div class="fl"><a href="">游泳馆</a></div>
					<div class="fl"><a href="">电影</a></div>
					<div class="fl"><a href="">周黑鸭</a></div>
					<div class="fl"><a href="">KTV</a></div>
					<div class="fl"><a href="">肯德基</a></div>
				</div>
			</div>
			<div class="cp2 clearfix">
				<div class="fl cpl">
					<img src="img/rmss.jpg"/>
					<span>热门搜索</span>
				</div>
				<div class="fr cpr">
					<a href="">
						更多
						<img src="img/gd.jpg"/>
					</a>
				</div>
			</div>
			<div class="cp3 clearfix">
				<div class="fl w280"><a href=""><img src="img/rmss1.jpg"/></a></div>
				<div class="fl w410"><a href=""><img src="img/rmss2.jpg"/></a></div>
				<div class="fl w200"><a href=""><img src="img/rmss3.jpg"/></a></div>
				<div class="fl w205"><a href=""><img src="img/rmss4.jpg"/></a></div>
			</div>
			<div class="cp4 clearfix">
				<div class="fl cpl">
					<img src="img/xingxing.jpg"/>
					推荐搜索
				</div>
				<div class="fr cpr">
					<a href="">
						更多
						<img src="img/gd.jpg"/>
					</a>
				</div>
			</div>
			<div class="cp5 clearfix">
				<div class="fl">
					<a href=""><img src="img/hy1.jpg"/></a>
				</div>
				<div class="fl">
					<a href=""><img src="img/liver.jpg"/></a>
				</div>
				<div class="fl">
					<a href=""><img src="img/pof.jpg"/></a>
				</div>
				
				
				
			</div>
		</section>
		<!--主体E-->
		
		<!--底部S-->
		<footer>
			<ul class="clearfix">
				<li class="fl">
					<a href="page.html">
						<i class="iconfont icon-home"></i>
						<p>首页</p>
					</a>
				</li>
				<li class="fl">
					<a href="classify.html">
						<i class="iconfont icon-classify1"></i>
						<p>分类</p>
					</a>
				</li>
				<li class="fl">
					<a href="compass.html">
						<i class="iconfont icon-compass-o"></i>
						<p>发现</p>
					</a>
				</li>
				<li class="fl">
					<a href="my.html">
						<i class="iconfont icon-myfill"></i>
						<p>我的</p>
					</a>
				</li>
			</ul>
		</footer>
		<!--底部E-->
		
		
		
		<script>
			 document.body.style.height = window.innerHeight + "px";
    
    /*动态改变根元素字体大小*/
    function recalc() {
      	// 获取客户端宽度
        var clientWidth = document.documentElement.clientWidth;
        if(!clientWidth) return;
         // 字体大小   = 1个rem单位表示多少个像素（设备的宽度   /设计宽度）
        document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
       
    }

    function initRecalc() {
        recalc();
        // if(浏览器支持横竖屏切换的事件){横竖屏事件}else{ resize事件 }
        var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
        if(!document.addEventListener) return;
        window.addEventListener(resizeEvt, recalc, false);
        document.addEventListener('DOMContentLoaded', recalc, false);
    }
                initRecalc();
			
		</script>
		
		
	</body>
</html>
